package ee.ts022.tuum.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import ee.ts022.tuum.domain.ContractType;

@Repository
public class ContractTypeDaoImpl extends DomainDao implements ContractTypeDao {
	
	public ContractTypeDaoImpl() {
		super(ContractType.class);
	}

	@Transactional
	@Override
	public List<ContractType> getAll() {
		return super.getAllDomain();
	}

	@Transactional
	@Override
	public ContractType get(int id) {
		return super.getDomain(id);
	}

	@Transactional
	@Override
	public boolean save(ContractType contractType) {
		return super.saveDomain(contractType);
	}

	@Transactional
	@Override
	public boolean insert(ContractType domain) {
		return super.insertDomain(domain);
	}

	@Transactional
	@Override
	public boolean delete(ContractType domain) {
		return super.deleteDomain(domain);
	}
	
}
